package com.tyk.bookstore.front.auth.model.query;

import com.tyk.bookstore.front.auth.model.enume.LoginPwdType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author tyk
 * @description LoginPwdQuery
 */
@Data
public class LoginPwdQuery {

    @Schema(description = "主体[账号/邮箱/手机号](needed since v2)")
    @NotBlank
    private String principal;

    @Schema(description = "行为验证码校验参数(needed since v2)")
    @NotBlank
    private String verifyParam;

    @Schema(description = "凭证[密码]")
    @NotBlank
    private String certificate;

    @Schema(description = "登录类型[0账号,1手机号,2邮箱]")
    @NotNull
    private LoginPwdType type;

}
